import {defaultStyle} from '@/svgutil/default-style';
import * as Dt from '@/svgutil/draw-type';

export const defineData2 = function () {


    return {
        //整理旋转角度： 90°。默认0
        //rotate: 90,
        //整体偏移大小： x:100,y:100；默认[0,0]
        translate: [0.5,0.5],
        //rotate: 90,
        //整体缩放
        //scale: 1,
        style: {...defaultStyle},
        children: [
            testImage()
        ]
    };
}
function testImage() {
    let image = Dt.image(-50,-50,100,100,'https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png');
    image.setTransform(90,100,100);
    return image;
}